package com.tencent.stat.event;

import android.content.Context;
import com.tencent.stat.NetworkManager;
import com.tencent.stat.StatSpecifyReportedInfo;
import com.tencent.stat.common.StatCommonHelper;
import com.tencent.stat.common.Util;
import org.json.JSONObject;

public class i extends e
{
  private static String a = null;
  private String m = null;
  private String n = null;

  public i(Context paramContext, int paramInt, StatSpecifyReportedInfo paramStatSpecifyReportedInfo)
  {
    super(paramContext, paramInt, paramStatSpecifyReportedInfo);
    this.m = NetworkManager.getInstance(paramContext).getCurNetwrokName();
    if (a != null)
      return;
    a = StatCommonHelper.getSimOperator(paramContext);
  }

  public EventType a()
  {
    return EventType.NETWORK_MONITOR;
  }

  public void a(String paramString)
  {
    this.n = paramString;
  }

  public boolean a(JSONObject paramJSONObject)
  {
    Util.jsonPut(paramJSONObject, "op", a);
    Util.jsonPut(paramJSONObject, "cn", this.m);
    paramJSONObject.put("sp", this.n);
    return true;
  }
}